package com.wangzhixuan.service;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.wangzhixuan.commons.utils.PageInfo;
import com.wangzhixuan.model.Rank;
import com.baomidou.mybatisplus.service.IService;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author zhixuan.wang
 * @since 2017-08-15
 */
public interface IRankService extends IService<Rank> {
	
	void selectDataGrid(PageInfo pageInfo);
	
	List<Map<String,Object>> selectlist();
	
	Rank selectRanking(Integer userId, Integer workId);
	
	void insertUserOnTime(Integer userId); 
	
	void insertUserDeTime(Integer userId);
	
	void updateUserOnTime(Integer userId);
	
	void updateUserDeTime(Integer userId);
	
	void updateUserFail(Integer userId);
	
	List selectTotalOnTimeNum();
	
	void updateRanking(Integer ranking,Integer totalOnTimeNum);
	
	Boolean autoRank();
	
}
